package cn.legend.travel.destination.main.pojo.vo;


import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.elasticsearch.annotations.GeoPointField;

import java.io.Serializable;


@Data
@Document(indexName = "destination_scenery_table")
public class SceneryVO implements Serializable {

    /**
     * 数据ID
     */
    @TableId
    @Field(type = FieldType.Keyword)
    private Long id;
    /**
     * 名称
     */
    @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_max_word")
    private String name;
    //经纬度
    @GeoPointField
    private String location;
    /**
     * 收藏数量
     */
    @Field(type = FieldType.Keyword)
    private Long collectionCount;
    /**
     * 简介
     */
    @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_max_word")
    private String brief;

    /**
     * 浏览数量
     */
    @Field(type = FieldType.Keyword)
    private Long viewCount;
    /**
     * 目的地ID
     */
    @Field(type = FieldType.Keyword)
    private Long destinationId;
    /**
     * 封面图url
     */
    @Field(type = FieldType.Keyword)
    private String coverUrl;
}
